package service

import (
	"week-three/global"
	"week-three/internal/model/dao"
)

func CheckUserByMobile(mobile string) (dao.UserModel, error) {
	var user dao.UserModel
	err := global.DB.Where("mobile = ?", mobile).First(&user).Error
	return user, err
}
